cssprovider: Cache if rulesets have inheritable style properties
authorBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 03:47:18 +0000 (05:47 +0200)
committerBenjamin Otte <otte@redhat.com>
Wed, 18 May 2011 20:17:58 +0000 (22:17 +0200)
commit8111d99183bbe3f10ba4260d319925ae1fc6b96e
treeff2e16ca7e2c2fe44b37247a3eb8d0e2d8bf9352
parent82b340f6f005a7d2b70d9aa7febb8612a53d0eda
cssprovider: Cache if rulesets have inheritable style properties

This provides a huge speedup as we only need to preprocess style
properties when they are indeed inherited. This roughly doubles the
performance of the CSS matcher and brings the time taken by
gtk_css_provider_get_style() from 19% to 7% in my favorite benchmark.
gtk/gtkcssprovider.c